﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Api.Common
{
    [AttributeUsage(AttributeTargets.Method)]
    public class CacheAttribute : Attribute
    {
        //缓存绝对过期时间
        public double AbsoluteExpiration { get; set; } = 20;
        public double SlidingExpiration { get; set; }
        public double AbsoluteExpirationRelativeToNow { get; set; }
    }
}
